import random


i = 5
b = random.randint(1,100)
while i > 0:
    i = i - 1
    a = int (input("请输入一个数"))
    if a == b:
        print("棒! 你猜对了")
    elif a < b: 
        print("比这个小!")
    elif a > b: 
        print("比这个大!")
if i == 0:
    print("这局你输了! 正确的数是",b)
    